<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<% String basepath = request.getContextPath(); %>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="<%=basepath%>/css/account.css" rel="stylesheet" type="text/css" />
		<script language="javascript" type="text/javascript" src="<%=basepath%>/js/include.js"></script>
		<script src="js/jquery-1.4.4.js" type="text/javascript"></script>
		<script language="javascript" type="text/javascript" src="<%=basepath%>/js/register.js"></script>
		<script language="javascript" type="text/javascript" src="<%=basepath%>/js/common.js"></script>
		<script language="javascript" type="text/javascript" src="<%=basepath%>/js/utilTool.js"></script>
		<script language="javascript" type="text/javascript" src="<%=basepath%>/js/validatorTool.js"></script>
<style type="text/css">
.mycolor {
	color: #FF0000;
}
</style>
<script type="text/javascript">
	function preStep() {
		//var valid = checkSupInfo(2);
		//if(valid ==false){
		//	return false;
		//}
		document.forms[0].action = "<%=basepath %>/register/invitePreStep?preStep=1";
		document.forms[0].submit();
	}
		
		//这里进行提交
	function nextStep() {
		var valid = checkSupInfo(2);
		if(valid ==false){
			return false;
		}
		document.forms[0].action = "<%=basepath %>/register/inviteNextStep?nextStep=3";
		document.forms[0].submit();
	}
	
	function save(){
		//var valid = checkSupInfo(2);
		//if(valid ==false){
		//	return false;
		//}
		
		document.forms[0].action = "<%=basepath %>/register/inviteSaveSupInfo?step=2";
		document.forms[0].submit();
	}

	function initCountryList(id){
		var url = "iframe:<%=basepath%>/register/initcountrylist?id="+id+"";
		dialog("", url,"500", "400", "","");
	}
</script>
</head>
	<body class="fullbody">
		<div id="content" class="content">
			<div class="">
				<b class="rtop"><b class="r1"></b><b class="r2"></b><b
					class="r3"></b><b class="r4"> </b> </b>
				<table cellpadding="0" cellspacing="0" border="0" width="980">
					<tr>
						<td class="leftmargin"></td>
						<td valign="top" align="left">
							<form method="post">
								<table cellpadding="0" cellspacing="0" border="0" width="920">
									<tr class="title">
										<td colspan="4"></td>
									</tr> 
									<tr class="inputrow">
										<td class="w1">联系人1：</td>
										<td class="w5">
											<input type="hidden" name="pk_suplinkman" value="${currentInfo.pk_suplinkman}"/>
											<input type="text" name="linkman"
												value="${currentInfo.linkman}" class="textstyle" />
										</td>
									</tr>
									<tr class="inputrow"> 
										<td class="w1">手机1：</td>
										<td class="w5">
											<input type="text" name="mobile"
												value="${currentInfo.mobile}" class="textstyle" />
										</td>
									</tr>
									<tr class="inputrow">
										<td class="w1">公司固定电话1：</td>
										<td class="w5">
											<input type="text" name="tel"
												value="${currentInfo.tel}" class="textstyle" />
												<span>加区号</span>
										</td>
									</tr>
									<tr class="inputrow">
										<td class="w1">电子邮箱1：</td>
										<td class="w5">
											 <input type="text" name="linkemail" class="textstyle"
												value="${currentInfo.linkemail}" />
										</td>
									</tr>
									
									<tr class="inputrow">
										<td class="w1">联系人2：</td>
										<td class="w5">
											<input type="hidden" name="pk_suplinkman2" value="${currentInfo.pk_suplinkman2}"/>
											<input type="text" name="linkman2"
												value="${currentInfo.linkman2}" class="textstyle" />
										</td>
									</tr>
									<tr class="inputrow">
										<td class="w1">手机2：</td>
										<td class="w5">
											<input type="text" name="phone2"
												value="${currentInfo.phone2}" class="textstyle" />
										</td>
									</tr>
									<tr class="inputrow">
										<td class="w1">公司固定电话2：</td>
										<td class="w5">
											<input type="text" name="tel2"
												value="${currentInfo.tel2}" class="textstyle" />
												<span>加区号</span>
										</td>
									</tr>
									<tr class="inputrow">
										<td class="w1">电子邮箱2：</td>
										<td class="w5">
											 <input type="text" name="email2" class="textstyle"
												value="${currentInfo.email2}" />
										</td>
									</tr>
									
									<tr class="inputrow">
										<td class="w1">联系人3：</td>
										<td class="w5">
											<input type="hidden" name="pk_suplinkman3" value="${currentInfo.pk_suplinkman3}"/>
											<input type="text" name="linkman3"
												value="${currentInfo.linkman3}" class="textstyle" />
										</td>
									</tr>
									<tr class="inputrow">
										<td class="w1">手机3：</td>
										<td class="w5">
											<input type="text" name="phone3"
												value="${currentInfo.phone3}" class="textstyle" />
										</td>
									</tr>
									<tr class="inputrow">
										<td class="w1">公司固定电话3：</td>
										<td class="w5">
											<input type="text" name="tel3" class="textstyle"
												value="${currentInfo.tel3}" />
												<span>加区号</span>
										</td>
									</tr>
										<tr class="inputrow">
										<td class="w1">电子邮箱3：</td>
										<td class="w5">
											 <input type="text" name="email3" class="textstyle"
												value="${currentInfo.email3}" />
										</td>
									</tr>
									<tr class="inputrow">
										<td class="w1">国家/地区：</td>
										<td class="w5">
											<input type="hidden" name="pk_country" id="country"
												 class="textstyle" value="${currentInfo.pk_country}" readOnly/>
											<input type="text" name="conutryName" id="countryname"
												value="${currentInfo.conutryName}" onclick="initCountryList('country')" class="textstyle"  readOnly/>
											<span class="needfill">*</span>
										</td>
									</tr>
									
<!--									<tr class="inputrow">-->
<!--										<td class="w1">营业地址：</td>-->
<!--										<td class="w5">-->
<!--											<input type="text" name="bizaddress"-->
<!--												value="${currentInfo.bizaddress}" class="textstyle" />-->
<!--										</td>-->
<!--									</tr>-->
									 <tr class="inputrow">
										<td class="w1">通讯地址：</td>
										<td class="w5">
											<input type="text" name="conaddress"
												value="${currentInfo.conaddress}" class="textstyle" />
												<span class="needfill">*</span>
										</td>
									</tr><tr class="inputrow">
										<td class="w1">邮政编码：</td>
										<td class="w5">
											<input type="text" name="zipcode" maxlength="6"
												value="${currentInfo.zipcode}" class="textstyle" />
										</td>
									</tr><tr class="inputrow">
										<td class="w1">Web网址：</td>
										<td class="w5">
											<input type="text" name="url"
												value="${currentInfo.url}" class="textstyle" />
										</td>
									</tr>
									<tr>
										<td colspan="4">
											&nbsp;
										</td>
									</tr>
									<tr class="buttonrow">
										<td align="right" colspan="4">
											<input type="button" value="暂存" onclick="save();"
												class="btnscs" />
											&nbsp;&nbsp;
											<input type="button" value="上一步" onclick="preStep();"
												class="btnscs" />
											&nbsp;&nbsp;
											<input type="button" value="下一步" onclick="nextStep();"
												class="btnscs" />
										</td>
									</tr>
								</table>
							</form>
						</td>
					</tr>
				</table>
				<div id="message" class="mycolor">
					<c:out value="${ERROR_MESSAGE}"></c:out>
				</div>
				<b class="rbottom">
					<b class="r4"></b>
					<b class="r3"></b>
					<b class="r2"></b>
					<b class="r1"> </b> 
				</b>
			</div>
		</div>
	</body>